package com.woniuxy.java106crm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    //id
    private Integer id;
    //订单编号
    private String orderno;
    //客户编号
    private String customerid;
    //下单日期
    @JsonFormat(pattern = "yy-MM-dd HH:mm:ss")
    private LocalDateTime datetime;
    //送货地址
    private String address;
    //订单状态
    private String state;
    //总金额
    private BigDecimal total;

}
